﻿/*
 * @Autor: PK
 * @Date: 2022/01/14 19:33:SS
 */

using System;

namespace ShkSimulation.core.template.agency {

	public enum InternalServeStatusEnum {

		Continue,
		Scheduled,

	}

	public class InternalServeResult {

		public InternalServeStatusEnum ServeStatus { get; set; }
		
		public DateTime ScheduledTime { get; set; }
		
		public Action ScheduleAction { get; set; }

		public static InternalServeResult Continue() {
			InternalServeResult result = new InternalServeResult();
			result.ServeStatus = InternalServeStatusEnum.Continue;
			return result;
		}
		
		public static InternalServeResult ScheduledFinish(DateTime clockTime, Action action = null) {
			InternalServeResult result = new InternalServeResult();
			result.ServeStatus = InternalServeStatusEnum.Scheduled;
			result.ScheduledTime = clockTime;
			result.ScheduleAction = action;
			return result;
		}


	}

}